package com.atguigu.lease.web.app.mapper;

import com.atguigu.lease.model.entity.FacilityInfo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;

/**
 * @author liubo
 * @description 针对表【facility_info(配套信息表)】的数据库操作Mapper
 * @createDate 2023-07-26 11:12:39
 * @Entity com.atguigu.lease.model.entity.FacilityInfo
 */
public interface FacilityInfoMapper extends BaseMapper<FacilityInfo> {

    /**
     * 获取房间的配套信息列表
     *
     * @param id 房间id
     * @return 配套信息列表
     */
    List<FacilityInfo> selectFacilityInfoListByRoomId(Long id);

    /**
     * 获取公寓配套列表
     *
     * @param id 公寓id
     * @return 配套信息列表
     */
    List<FacilityInfo> selectFacilityInfoListByApartmentId(Long id);
}




